* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: url('background-image.webp') no-repeat center center;
    background-size: cover;
    min-height: 100vh;
    overflow-x: hidden;
}


/* 外层容器 */

body>.main-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
}


/* 内层主容器 */

.main-container .main-container {
    width: 960px;
    height: 600px;
    flex-shrink: 0;
    display: flex;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}


/* 左侧视觉区域 */

.left-visual {
    flex: 1;
    background: url('1.webp') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
}

.main-visual-image {
    object-fit: contain;
    position: absolute;
    left: 0;
    top: -215px;
}


/* 右侧登录区域 */

.right-login {
    width: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #fff;
    height: 100%;
}

.login-box {
    width: 100%;
    max-width: 400px;
}

.login-form {
    padding: 0;
}


/* 标题区域 */

.title-section {
    text-align: center;
    margin-bottom: 24px;
}

.main-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 0 0;
    line-height: 1.2;
}

.subtitle {
    font-size: 20px;
    font-weight: 400;
    color: #999;
    margin: 0;
    line-height: 1.2;
}


/* 登录选项卡 */

.login-tabs {
    display: flex;
    position: relative;
    margin-bottom: 24px;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
}

.tab {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    padding: 8px 16px;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.tab.active {
    color: #4c80fb;
    font-weight: 500;
}

.tab-underline {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1px;
    height: 12px;
    background: #e5e5e5;
}

.tab-indicator {
    display: none;
}

.tab-indicator {
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 60px;
    height: 2px;
    background: #4c80fb;
    transition: left 0.3s ease;
}


/* 表单样式 */

.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    position: relative;
    margin-bottom: 16px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    padding: 0 12px;
    height: 48px;
    transition: border-color 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: #4c80fb;
    box-shadow: 0 0 0 2px rgba(76, 128, 251, 0.1);
}

.input-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    opacity: 0.6;
    flex-shrink: 0;
}

.input-divider {
    width: 1px;
    height: 16px;
    background: #e5e5e5;
    margin-right: 12px;
    flex-shrink: 0;
}

.form-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0;
    font-size: 14px;
    color: #333;
    background: transparent;
    height: 100%;
}

.form-input::placeholder {
    color: #999;
}

.input-action-icon {
    width: 16px;
    height: 16px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.input-action-icon:hover {
    opacity: 1;
}


/* 验证码样式 */

.captcha-group {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

.captcha-input {
    flex: 1;
}

.captcha-image {
    width: 125px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
}

.captcha-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* 表单选项 */

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 8px;
}

.remember-password {
    display: flex;
    align-items: center;
    gap: 6px;
}

.checkbox-wrapper {
    position: relative;
}

.checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-label {
    cursor: pointer;
}

.checkbox-custom {
    width: 14px;
    height: 14px;
    border: 1px solid #4c80fb;
    border-radius: 2px;
    background: #4c80fb;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.checkbox:not(:checked)+.checkbox-label .checkbox-custom {
    background: #fff;
    border-color: #d9d9d9;
}

.checkbox:not(:checked)+.checkbox-label .checkbox-custom svg {
    opacity: 0;
}

.checkbox:checked+.checkbox-label .checkbox-custom svg {
    opacity: 1;
}

.option-text {
    font-size: 12px;
    color: #666;
    user-select: none;
}

.forgot-password {
    font-size: 12px;
    color: #4c80fb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #3a6eef;
}


/* 登录按钮 */

.login-button {
    width: 100%;
    padding: 12px;
    background: #4c80fb;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    margin-bottom: 0;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-button:hover {
    background: #3a6eef;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(76, 128, 251, 0.3);
}

.login-button:active {
    transform: translateY(0);
}


/* 底部版权信息 */

.footer {
    margin-top: 20px;
    text-align: center;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0;
}